import request from '@/utils/request';

/**
 * 供应商账单 列表
 * @param pram
 */
export function billListApi(params) {
    return request({
        url: '/shopping/back/tenant/bill/list',
        method: 'get',
        params,
    });
}


/**
 * 供应商账单 列表
 * @param pram
 */
export function billDetailListApi(params) {
    return request({
        url: '/shopping/back/tenant/bill/detail/list',
        method: 'get',
        params,
    });
}

/**
 * 结算确认
 * @param pram
 */
export function billConfirmApi(id) {
    return request({
        url: `/shopping/back/tenant/bill/confirm/${id}`,
        method: 'GET',
    });
}

/**
 * 构建账单
 * @param id
 */
export function billBuildApi(id) {
    return request({
        url: `/shopping/back/tenant/bill/build/${id}`,
        method: 'GET',
    });
}